﻿using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Text;
namespace NCEdu.Web.notify
{
    public partial class Show : Page
    {        
        		public string strid=""; 
		protected void Page_Load(object sender, EventArgs e)
		{
			if (!Page.IsPostBack)
			{
				if (Request.Params["id"] != null && Request.Params["id"].Trim() != "")
				{
					strid = Request.Params["id"];
					int notifyId=(Convert.ToInt32(strid));
					ShowInfo(notifyId);
				}
			}
		}
		
	private void ShowInfo(int notifyId)
	{
		NCEdu.BLL.notify bll=new NCEdu.BLL.notify();
		NCEdu.Model.notify model=bll.GetModel(notifyId);
		this.lblnotifyId.Text=model.notifyId.ToString();
		this.lblnotifyContent.Text=model.notifyContent;
		this.lblnotifyTitle.Text=model.notifyTitle;
		this.lblpeople.Text=model.people;
		this.lbltime.Text=model.time.ToString();
		this.lbloldTime.Text=model.oldTime.ToString();
		this.lblIspush.Text=model.Ispush?"是":"否";

	}


    }
}
